package com.chief;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("t2-service")
public interface AccountService {

    @RequestMapping("/reduce")
    void reduce(@RequestParam("amount") Double amount);
}
